.coupon-container {
  padding: 26px 0;

  .navbar {
    padding: 0 20px;

    .tabs {
      @include flex_center();

      .tab-item {
        margin-left: 40px;
        padding: 0 2px;
        color: $-color-muted;
        font-size: 18px;
        cursor: pointer;
        position: relative;

        &.active {
          color: #000;
          font-weight: bold;

          &:after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            right: 0;
            height: 4px;
            @include background_color();
          }
        }
      }
    }
  }

  .body {
    position: relative;

    .lists-body {
      height: 560px;
      overflow: auto;
      padding: 0 20px;

      .lists {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 18px;

        .item {
          height: 104px;
          box-sizing: border-box;
          position: relative;
          border-radius: 12px;

          &:after {
            content: "";
            position: absolute;
            border-radius: 12px;
            top: 0;
            left: 0;
            right: 20px;
            height: 100%;
            @include background_color();
          }

          .card {
            display: flex;
            align-items: stretch;
            position: relative;
            z-index: 1;
            height: 100%;
            padding: 5px 0;

            .left {
              width: 102px;
              @include flex_center();
              flex-direction: column;
              color: $-color-brown;

              .money {
                font-size: 16px;

                span {
                  font-family: 'changchun1hao';
                  font-size: 28px;
                }
              }

              .min-money {
                line-height: 20px;
                padding: 0 6px;
                background: #FFFFFF;
                border-radius: 10px;
                font-size: 12px;
                width: max-content;
                text-align: center;
              }
            }

            .right {
              flex: 1;
              position: relative;
              overflow: hidden;
              border-radius: 0 12px 12px 0;
              padding: 0 20px 0 28px;
              display: flex;
              flex-direction: column;
              justify-content: space-around;
              color: $-color-brown;
              font-size: 14px;
              font-weight: bold;

              .desc {
                font-weight: 400;
                color: #857151;
                font-size: 12px;
                @include flex_between();
              }

              .give-btn {
                background: $-color-brown;
                color: #fff;
                line-height: 20px;
                padding: 0 8px;
                border-radius: 20px;
                text-align: center;
                font-size: 12px;
                cursor: pointer;
                position: absolute !important;
                bottom: 7px;
                right: 18px;
              }

              div {
                position: relative;
                z-index: 1;
              }

              &:after, &:before, .giving-icon {
                content: "";
                position: absolute;
              }

              .giving-icon {
                top: 0;
                right: 0;
                height: 100%;
                object-fit: cover;
                z-index: 1;
              }

              &:after {
                top: 50%;
                transform: translateY(-50%);
                left: 0;
                right: 0;
                height: 220%;
                background: linear-gradient(90deg, #FEF0D7 0%, #FDE5B6 100%);
                border-radius: 200px 12px 12px 200px;
              }

              &:before {
                right: 15px;
                bottom: 0;
                width: 105px;
                height: 105px;
                background: url("~@/assets/images/coupon/mask-drink.png") no-repeat center / cover;
                z-index: 1;
              }

              &.type-1:before {
                background: url("~@/assets/images/coupon/mask-money.png") no-repeat center / cover;
              }
            }
          }

          &.item-2, &.item-3 {
            color: $-color-gray !important;

            &:after {
              background: #ccc;
            }

            .card {
              .left {
                color: $-color-gray !important;
              }

              .right {
                color: $-color-gray !important;

                .desc {
                  color: $-color-gray !important;
                }

                &:after {
                  background: #E9E9E9;
                }

                &:before {
                  background: url("~@/assets/images/coupon/mask-drink-d.png") no-repeat center / cover;
                }

                &.type-1:before {
                  background: url("~@/assets/images/coupon/mask-money-d.png") no-repeat center / cover;
                }
              }
            }
          }
        }
      }
    }
  }
}

.giving-model {
  background: transparent;
  color: #333;
  padding: 0;
  position: relative;
  .icon-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 22px;
    cursor: pointer;
  }

  .header {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;

    .label {
      padding: 0 4px;
      height: 20px;
      font-size: 12px;
      border-radius: 2px;
      background: rgba(255, 255, 255, .3);
      color: #FE671D;
      @include flex_center();
    }

    .input {
      background: rgba(255, 255, 255, 0.6);
      border-radius: 4px;
      padding: 4px 12px;
      display: flex;
      margin-top: 20px;

      input {
        outline: none;
        border: none;
        width: 100%;
        flex: 1;
        margin-right: 10px;
        background: transparent;
      }
    }
  }

  .content {
    .list {
      background: rgba(255, 255, 255, 0.6);
      max-height: 250px;
      overflow: auto;
      border-radius: 4px;

      &::-webkit-scrollbar {
        width: 0;
      }

      .item {
        padding: 10px;
      }
    }
  }
}

.confirm-giving-model {
  background: transparent;

  .el-dialog {
    color: #333;
    padding: 0;
    @include theme_each {
      background: linear-gradient(360deg, #fff 11%, get_color('linear_color') 100%);
    }
    position: relative;

    .el-dialog__body {
      padding: 16px;

      .icon-close {
        position: absolute;
        right: 16px;
        top: 16px;
        font-size: 22px;
        cursor: pointer;
      }

      .header {
        color: #fff;
        font-size: 18px;
        text-align: center;
        margin-top: 20px;

        .label {
          padding: 0 4px;
          font-size: 12px;
          height: 20px;
          border-radius: 2px;
          background: rgba(255, 255, 255, .3);
          color: #FE671D;
          @include flex_center();
        }
      }

      .el-button {
        width: 100%;
      }
    }
  }
}

